<?php
require_once 'head.php';
require_once 'model/article.php';
require_once 'foot.php';

$cache=false;
$smar=new MySmarty($cache,$cachetime,$moban);
$smarty=$smar->get_smarty();

$smarty->assign("webname",$webname);
$smarty->assign("description",$description);
$smarty->assign("keywords",$keywords);
$smarty->assign("website",$website);
$smarty->assign("searchkeys",$searchkeys);
$smarty->assign("newshops",$newshops);
$smarty->assign("toubiao",$show_topnav);
$smarty->assign("moban",$moban);
$smarty->assign("jiathis",$jiathis);
$smarty->assign("ads",$ads);
$smarty->assign("thispid",$thispid);
$smarty->assign("navcount",$art['navcount']);
$smarty->assign("art_postfix",$art['postfix']); //文章系统后缀名

$smarty->assign("links",$links);
$smarty->assign("QQ",$QQ);
$smarty->assign("ICP",$ICP);
$smarty->assign("tongji",$tongji);

$path=get_catalog_path_all($_GET['id']);
$html=$smarty->fetch("artlist.html",null, null, false);
$page=$_GET['page']?$_GET['page']:1;
if($page==1){
	$filename="./".$path."/index".$art['postfix'];
}else{
	$filename="./".$path."/index_".$page.$art['postfix'];
}
$smarty->MakeHtmlFile($filename,$html); //生成html
//$smarty->display("artlist.html");
?>